package com.zsj.service_user.service;

import com.zsj.service_user.entity.AppUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zsj.service_user.entity.pojo.AvatarName;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zsj
 * @since 2022-04-27
 */
public interface AppUserService extends IService<AppUser> {

    Boolean registerUser(AppUser user);

    Boolean haveSomeOne(String one,String two);

    boolean updateAvatarByName(AvatarName info);

    String getUserAvatarByName(String name);

    Integer getBalance(String name);

    boolean addBalance(String name, Integer price);


    boolean upNickName(String name, String newName);

    boolean upSex(String name, String newSex);

    boolean upBirthday(String name, String newBirthday);

    boolean upPassword(String name,String oldPass, String newPass);
}
